package com.bosssoft.trainee.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;


/**
 * @Author: wuxin
 * @Project: rbac-SpringCloud
 * @Date: 2022/7/12
 * @Description:
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableFeignClients // 开启 OpenFeign 功能
@EnableAsync//启用异步
public class TraineeGatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(TraineeGatewayApplication.class, args);
    }
}
